import request from '@/utils/request'

// 查询cardetail列表
export function listCardetail(query) {
  return request({
    url: '/business/cardetail/list',
    method: 'get',
    params: query
  })
}

// 查询cardetail详细
export function getCardetail(id) {
  return request({
    url: '/business/cardetail/' + id,
    method: 'get'
  })
}

// 新增cardetail
export function addCardetail(data) {
  return request({
    url: '/business/cardetail',
    method: 'post',
    data: data
  })
}

// 修改cardetail
export function updateCardetail(data) {
  return request({
    url: '/business/cardetail',
    method: 'put',
    data: data
  })
}

// 删除cardetail
export function delCardetail(id) {
  return request({
    url: '/business/cardetail/' + id,
    method: 'delete'
  })
}

// 导出cardetail
export function exportCardetail(query) {
  return request({
    url: '/business/cardetail/export',
    method: 'get',
    params: query
  })
}